<?php

class SettingsForm extends CFormModel
{
	//public $title;
	//public $email;
	//public $isSplitStadium;
    //public $aliasForSplit;
	public $table;
	
	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		// NOTE: you should only define rules for those attributes that
		// will receive user inputs.
		return array(
			//array('title, email', 'required'),
			//array('title', 'length', 'max'=>128),
            //array('aliasForSplit', 'length', 'max'=>1),
			//array('email', 'email'),
            array('table', 'required'),
			array('table', 'numerical', 'integerOnly'=>true),
			//array('isSplitStadium', 'boolean'),
		);
	}
	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			//'title' => 'Title',
			//'email' => 'Email',
            //'aliasForSplit' => 'Alias for Split',
			'table' => 'Table',
			//'isSplitStadium' => 'Split Stadium',
		);
	}
}